package com.eimf.saf.base.querycomm;

/**
 * @author eden
 * @date 2013-11-18 下午1:53:08
 * @Description: 排序表达式
 */
public class OrderExpression
{

    /**
     * 要排序的字段名。
     */
    private String name;

    /**
     * 是否升序。
     */
    private boolean ascending;

    public OrderExpression(final String name, final boolean ascending)
    {
        super();
        this.name = name;
        this.ascending = ascending;
    }

    public OrderExpression(final String name)
    {
        super();
        this.name = name;
        this.ascending = true;
    }

    public String getName()
    {
        return name;
    }

    public void setName(final String name)
    {
        this.name = name;
    }

    public boolean isAscending()
    {
        return ascending;
    }

    public void setAscending(final boolean ascending)
    {
        this.ascending = ascending;
    }
}
